package com.nsn.das.midas.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface BaseManager {
	public <T> Set<T> getEntitysByIds(Class<T> clazz,String ids);
	
	public <T> T getEntity(Class<T> clazz,long id);
    
    public void saveEntity(Object entity);
    
    public void saveOrUpdateEntity(Object entity);
    
    public void deleteEntity(Object entity);
    
    public <T> List<T> getEntities(Class<T> clazz, int pageIndex, int pageSize);
    
    public <T> List<T> getEntities(Map<String,Object> conditions, Class<T> clazz, int pageIndex, int pageSize);
    
    public <T> long countEntities(Class<T> clazz);
}
